﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Tool.Core;
using Microsoft.SharePoint;

namespace Tool
{
    public partial class Connect : Form
    {
        public Connect()
        {
            InitializeComponent();
            this.txtURL.Text = Common.GetValueFromXml("ConnectionUrl");
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            
        }

        private void btnConnect_Click(object sender, EventArgs e)
        {
            Common.URL = this.txtURL.Text.Trim();
            Common.LoginPage = this;
            this.Hide();

            Main m = new Main();
            m.Show();
            

        }



    }
}
